package com.su.lightthings.entity

//import io.objectbox.annotation.Entity
//import io.objectbox.annotation.Id
//import io.objectbox.annotation.Index
//import io.objectbox.annotation.Unique
//import io.objectbox.relation.ToOne


/**
 * 数据库-通用数据类
 * @param type 数据类型
 * @param timeStamp 时间戳，该数据将具有唯一性。
 */
//@Entity
data class CommonDataEntity(
//    @Id
//    var id: Long = 0,
//    @Index
//    @Unique/*(onConflict = ConflictStrategy.REPLACE)*/
    var timeStamp: Long = 0L,
    var type: Int = 0,
    var fData1: Float = 0F,
    var fData2: Float = 0F,
    var iData1: Int = 0,
    var iData2: Int = 0,
) {
//    lateinit var device: ToOne<ConnectedDeviceEntity>
}